Longest Segment Problems

نویسنده

  • Hans Zantema
چکیده

The following problem is considered: Given a predicate p on strings. Determine the longest segment of a given string that satisfies p. This paper is an investigation of algorithms solving this problem for various predicates. The predicates considered are expressed in simple functions like the size, the minimum, the maximum, the leftmost and the rightmost element of the segment. The algorithms are linear in the length of the string.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Optimal algorithms for locating the longest and shortest segments satisfying a sum or an average constraint

We study several fundamental problems arising from biological sequence analysis. Given a sequence of real numbers, we present two linear-time algorithms, one for locating the “longest” sum-constrained segment, and the other for locating the “shortest” sumconstrained segment. These two algorithms are based on the same framework and run in an online manner, hence they are capable of handling data...

متن کامل

Certi cation Trails and Software Design for Testability

This paper investigates design techniques which may be applied to make program testing easier. We present methods for modifying a program to generate additional data which we refer to as a certiication trail. This additional data is designed to allow the program output to be checked more quickly and eeectively. Cer-tiication trails 14, 16] have heretofore been described primarily from a theoret...

متن کامل

The effect of different concentrations of growth regulators on the micropropagation of Haworthia attenuatae (zebra haworthi)

Due to the problems of sexual and asexual reproduction of Haworthia attenuatae as one of the most popular ornamental succulents, the possibility of micropropagation of this plant in in vitro conditions was studied. The effect of BAP (Benzylamino purine) and Kin (Kinetin) (0.5, 1 and 2 mg/l) in Combination with IBA (Indole-3-acetic acid) (0, 0.01, 0.1 and 0.5 mg/l) using leaf explants on the sho...

متن کامل

A Segment-Based Trajectory Similarity Measure in the Urban Transportation Systems

With the rapid spread of built-in GPS handheld smart devices, the trajectory data from GPS sensors has grown explosively. Trajectory data has spatio-temporal characteristics and rich information. Using trajectory data processing techniques can mine the patterns of human activities and the moving patterns of vehicles in the intelligent transportation systems. A trajectory similarity measure is o...

متن کامل

Certification Trails and Software Design for Testability

This paper investigates design techniques which may be applied to make program testing easier. We present methods for modifying a program to generate additional data which we refer to as a certification trail. This additional data is designed to allow the program output to be checked more quickly and effectively. Certification trails [14, 16] have heretofore been described primarily from a theo...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • Sci. Comput. Program.

دوره 18  شماره 

صفحات  -

تاریخ انتشار 1992